<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改采购计划商品')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-purchaseitem-edit" th:object="${sysPurchaseitem}">
            <input name="purchaseItemId" th:field="*{purchaseItemId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购单位ID：</label>
                <div class="col-sm-8">
                    <input name="purchasingUnitId" th:field="*{purchasingUnitId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购计划ID：</label>
                <div class="col-sm-8">
                    <input name="purchasePlanId" th:field="*{purchasePlanId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货物表ID：</label>
                <div class="col-sm-8">
                    <input name="goodsId" th:field="*{goodsId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">品牌ID：</label>
                <div class="col-sm-8">
                    <input name="brandId" th:field="*{brandId}" class="form-control" type="text">
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/purchaseitem";
        $("#form-purchaseitem-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-purchaseitem-edit').serialize());
            }
        }
    </script>
</body>
</html>